extends Resource

var warrior_cards_id: Array[int] = [0,1]
var mage_cards_id: Array[int] = []
var warrior_trophy_cards_id: Array[int] = [2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]

var warrior_cards: Array[Card] = []
var all_cards = {}
var warrior_trophy_cards: Array[Card] = []


func load_cards():
	var tres_files = CommonUtil.load_tres("res://src/battle/card/card_detail_tres/")
	for t in tres_files:
		all_cards[t.card_id] = t
		
	for card_id in warrior_cards_id:
		if all_cards.has(card_id):
			warrior_cards.append(all_cards[card_id])
		else:
			print("不存在的card_id"+str(card_id))
	
	for card_id in warrior_trophy_cards_id:
		if all_cards.has(card_id):
			warrior_trophy_cards.append(all_cards[card_id])
		else:
			print("不存在的card_id"+str(card_id))
